package org.example.myleet.p390;

import org.example.myleet.Utils.Assert;

public class Main {
    public static void main(String[] args) {
        Solution solution = new Solution();
        Assert.isTrue(1 == solution.lastRemaining(1));
        Assert.isTrue(2 == solution.lastRemaining(2));
        Assert.isTrue(2 == solution.lastRemaining(3));
        Assert.isTrue(2 == solution.lastRemaining(4));
        Assert.isTrue(4 == solution.lastRemaining(6));
        Assert.isTrue(6 == solution.lastRemaining(8));
        Assert.isTrue(8 == solution.lastRemaining(10));
        Assert.isTrue(6 == solution.lastRemaining(12));
        Assert.isTrue(8 == solution.lastRemaining(14));
        Assert.isTrue(6 == solution.lastRemaining(16));
        Assert.isTrue(8 == solution.lastRemaining(18));
        Assert.isTrue(6 == solution.lastRemaining(20));
        Assert.isTrue(14 == solution.lastRemaining(24));
    }
}
